#include <cstdlib>
#include <sys/types.h>
#include <signal.h>
#include <string>
#include <iostream>

using namespace std;

void Usage() 
{
    cout << "Usage:./sig pid signal" << endl;
}

//./sig pid signal
int main(int argc, char* argv[]) 
{
    if (argc != 3) 
    {
        Usage();
        exit(1);
    }
    int pid = stoi(argv[1]);
    int signal = stoi(argv[2]);
    kill(pid, signal);

    return 0;
}